package de.uni_saarland.coli.doclists.document;

import java.io.Serializable;

/**
 * 
 * @author philip, stefan
 *
 * class for representing a Document indexable by a suffix tree
 */
public class TextDocument implements ITextDocument ,Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4713509203935595859L;
	
	private String name;
	private StringBuffer text;
	private int ID;

	@Override
	public String getText() {
		return this.text.toString();
	}

	@Override
	public String getDocumentName() {
		return this.name;
	}

	@Override
	public int getDocID() {
		return this.ID;
	}


	@Override
	public void setDocID(int id) {
		this.ID = id;
	}
	
	public TextDocument(String name, StringBuffer text, int id){
		this.name = name;
		this.text = text;
		this.ID = id;
	}

}
